package com.solace.selenium.task;

import cn.hutool.cron.task.Task;
import com.solace.selenium.service.WebDriverService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class GoodsNotCommentator implements Task {
    private String goodsId;
    private WebDriverService webDriverService;
    @Override
    public void execute() {
        log.info("商品讲解取消[{}]",goodsId);
        webDriverService.notCommentator(goodsId);
    }

    public GoodsNotCommentator(String goodsId, WebDriverService webDriverService) {
        this.goodsId = goodsId;
        this.webDriverService = webDriverService;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public WebDriverService getWebDriverService() {
        return webDriverService;
    }

    public void setWebDriverService(WebDriverService webDriverService) {
        this.webDriverService = webDriverService;
    }
}
